// 权限管理
import User from './lib/auth/user/index'
import Role from './lib/auth/role/index'
import WorkGroup from './lib/auth/workgroup/index'
import DataAuth from './lib/auth/dataauth/index'

// 组织结构
import Org from './lib/organize/org/index'
import OrgChart from './lib/organize/orgchart/index'
import OrgUser from './lib/organize/orguser/index'
import Duty from './lib/organize/duty/index'

// 系统管理
import AdminDict from './lib/system/admindict/index'
import Application from './lib/system/application/index'
import Audit from './lib/system/audit/index'
import AuditConfig from './lib/system/auditconfig/index'
import Config from './lib/system/config/index'
import Function from './lib/system/function/index'
import Template from './lib/system/template/index'
import Menu from './lib/system/menu/index'

const components = {
  install(Vue) {
    User.install(Vue)
    Role.install(Vue)
    WorkGroup.install(Vue)
    DataAuth.install(Vue)
    Org.install(Vue)
    OrgChart.install(Vue)
    OrgUser.install(Vue)
    Duty.install(Vue)
    AdminDict.install(Vue)
    Application.install(Vue)
    Audit.install(Vue)
    AuditConfig.install(Vue)
    Config.install(Vue)
    Function.install(Vue)
    Template.install(Vue)
    Menu.install(Vue)
  }
}

export default components
